home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1991 / Jan 91 / MacApp.Tech$ 1⁄18⁄91 / 2691-Of Pascal '9x and TE-Jan91 < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.8 KB  |  42 lines  |  [TEXT/GEOL]

  1. Item    4462251                         15-Jan-91        18:08PST
  2.  
  3. From:   D2188                           Office Product Tech, B Toback,PRT
  4.  
  5. To:     MACAPP.TECH$                    MacApp Technical
  6.  
  7. Item forwarded by       SPA.DTS      to SPA0144 
  8.  
  9. ------------------------------------------------------------------------------
  10.  
  11. Sub:    Of Pascal '9x and TEditText
  12.  
  13. Re: Of Pascal '9x, TEditText and SFPutFile
  14.  
  15. My comment about Pascal '9x ("why bother?") should not be misinterpreted either
  16. as an indictment of Object Pascal (some of my best friends are Pascal
  17. programmers) or an endorsement of C++ (some of my best programs look like
  18. Sanskrit). Object Pascal clearly has a role to play, and should continue to be
  19. supported and enhanced. Rather, it was intended to provoke discussion as to the
  20. *best* use of expensive and scarce engineering resources: a redesign of Object
  21. Pascal or the creation of an entirely new and better OOP environment.
  22.  
  23. But for the moment, I have a problem that I'd be delighted to solve in either
  24. language. I need to create what might otherwise be a subclass of TEditText, if
  25. a TEditText accepted key and menu commands directly. Essentially, for every
  26. character typed, I need to do something besides display it. I can't find a
  27. simple way to do this; the only way I've found is to subclass TEditText and
  28. override StartEdit and StopEdit, creating and installing my own subclass of
  29. TTEView rather than using the one belonging to the enclosing TDialogView. That
  30. seems messy, and what's worse, I don't completely understand the logic
  31. associated with TDialogView and its interaction with TEditText. Can someone
  32. help? Essentially, what I'd like is something like the SFPutFile implementation
  33. on 7.0, but with keystrokes showing up in the filename box as they are typed --
  34. even when the list has the input focus.
  35.  
  36. Thanks,
  37. -- Bruce Toback
  38. OPT, Inc.
  39. D2188
  40.  
  41.  
  42.